package com.itheima.user.client.fallback;

import com.itheima.cloud.pojo.Order;
import com.itheima.user.client.OrderClient;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 熔断 时候会被触发， 所有的方法都是异常返回
 */
@Component
public class OrderClientFallback implements OrderClient {

    @Override
    public List<Order> findOrderByUserId(String username) {
        return new ArrayList<>();
    }

}
